<?php
namespace Admin\Controller;
use Admin\Controller\CommonController;
use Common\Model\AdminModel;


class ManagerController extends  CommonController{


	public function index(){
		$userInfo = $this->loginUserInfo;
		$model = new AdminModel();
		if(IS_POST){
			if(!$model->editPassWord($userInfo)){
				$this->error($model->getError());
			}
			$this->success('修改成功',U('admin/manager/index'));
		}

		if(isset($userInfo[1])){
			$this->assign('username',$userInfo[1]);
		}
		$this->display();
	}

}
